(function($) {
    var i = 0;
    var objs = new Array();
    $.fn.mutiUploadModal = function(options) {
        var html = '<p><a href="javascript:void(0)" data-toggle="modal" class="btn-sm btn" id="muti_upload_image_a_' + i + '" i="' + i + '">上传图片</a></p>';
        $(this).after(html);
        $('#muti_upload_image_a_' + i).click(function() {
            $("#myMutiModal").find(".modal-body").html($("#muti-upload-template").html());
            $("#myMutiModal").modal();
            $("body").append('<script src="/admin_resources/our/swfupload/swfupload.js" class="muti-upload-js"></script>');
            $("body").append('<script src="/admin_resources/our/swfupload/uploader.js" class="muti-upload-js"></script>');
            taObject = $(options.obj);
            taObject.success = options.success;
            taObject.allSuccess = options.allSuccess;
        });
        i++;
    };
})(jQuery);